<template>
	<view>
		<view><iframe id="tradingViews" width="100%" height="1000" :src="urls" frameborder="0"></iframe></view>
	</view>
</template>
<script>
import md5 from 'js-md5';
import { toast } from '@/utils/toast';
import { mapState, mapActions } from 'vuex';
export default {
	data() {
		return {
			userMsg: '',
			urls: ''
		};
	},
	created() {
	},
	computed: {
		...mapState('user', ['userinfo']),
		...mapState(['lang'])
	},

	// 测试用
	onShow() {
		console.log(this.userinfo, 777);
		try {
			this.urls =
				'https://view.dupont-ex.com/KYing/income/incomewx?cusid=' +
				this.userinfo.Customer.loginId +
				'&cussign=' +
				md5('cusappsid=' + this.userinfo.Customer.loginId + '&key=i0qeQ6-3IISHUbAvd6yoFGdQTVDODvGk').toUpperCase();
		} catch (e) {
			uni.navigateTo({
				url: '/pages/auth/login'
			});
		}
	},
	mounted() {},

	methods: {}
};
</script>

<style scoped lang="scss">
.v-img image {
	width: 200upx;
	height: 200upx;
	margin: 50upx auto;
	display: flex;
}
.Help {
	display: flex;
	justify-content: center;
	margin-top: 300upx;
	& > view:nth-child(1) {
		font-size: 30upx;
		font-family: PingFang SC;
		font-weight: 400;
		color: #2d2f56;
	}
	& > view:nth-child(2) input {
		width: 200upx;
		border: 1upx solid #dcdfe6;
		padding: 0 20upx;
		height: 54upx;
		border-right-style: none;
	}
	& > view:nth-child(3) {
		color: #909399;

		border: 1upx solid #dcdfe6;
		border-radius: 4upx;
		padding: 0 20upx;
		align-items: center;
		display: flex;
		font-size: 30upx;
		font-family: PingFang SC;
		font-weight: 400;
		height: 54upx;
	}
}
.subimit button {
	width: 80%;
	font-size: 30upx;
	margin-top: 100upx;
}
</style>
